'use strict';

module.exports = app => {
  const { STRING, UUID, UUIDV4, DECIMAL, INTEGER } = app.Sequelize;
  const model = app.model.define('repair_sign', {
    id: {
      type: UUID,
      primaryKey: true,
      defaultValue: UUIDV4,
      comment: '主键',
    },
    address: {
      type: STRING,
      comment: '地址',
    },
    remark: {
      type: STRING,
      comment: '备注',
    },
    userid: {
      type: STRING,
      comment: '用户Id',
    },
    username: {
      type: STRING,
      comment: '用户名',
    },
    repair_id: {
      type: UUID,
      comment: '维修表主键',
    },
  });
  return model;
};
